export const getQueryParams = (url: string) => {
  const params: Record<string, any> = {}
  const queryString = url.split('?')[1]
  if (queryString) {
    const keyValuePairs = queryString.split('&')
    keyValuePairs.forEach((pair) => {
      const [key, value] = pair.split('=')
      params[key] = value
    })
  }
  return params
}
